@import './transition.scss';
@import './layout.scss';
@import './element-ui.scss';

*,
*:before,
*:after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Source Han Sans';
    // 放七牛||异步引入
    src: url(https://images.hzsyoudong.com/SourceHanSansCN-Normal.ttf);
}

body {
    font-family: 'Source Han Sans', 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    -webkit-font-smoothing: antialiased; /*chrome、safari*/
    -moz-osx-font-smoothing: grayscale; /*firefox*/
}

div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

ol,
ul,
li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

#nprogress {
    position: fixed;
    z-index: 9999 !important;
    .bar {
        background: $--color-primary !important;
    }
}

#app {
    // &::-webkit-scrollbar {
    //     width: 8px;
    //     background: transparent;
    // }

    // &::-webkit-scrollbar-thumb {
    //     border-radius: 6px;
    //     border: 2px solid transparent;
    //     background-clip: content-box;
    //     background-color: $--scrollbar-color;
    // }
}

.hidden-scrollbar {
    &::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }
    /* 隐藏滚动条 */
    scrollbar-width: none; /* firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

img {
    user-select: none;
    // 缩放显示比例抗失真
    image-rendering: -moz-crisp-edges; /* Firefox */
    image-rendering: -o-crisp-edges; /* Opera */
    image-rendering: -webkit-optimize-contrast; /*Webkit (non-standard naming) */
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
}

/* 文本超出隐藏 单行 */
.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文本超出隐藏 2行 */
.ellipsis2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

// 表单选项 - 时间间隔
.form-time-line {
    color: #999999;
    padding: 0 8px;
}

.blue {
    color: $--color-primary;
}

.green {
    color: $--color-success;
}

.red {
    color: $--color-danger;
}

.grey {
    color: $--color-info;
}
